package ch.hoth.java.joocal;

import java.util.HashMap;
import java.util.Map;

public class GoogleUserFactory {
	
	private static Map<String, GoogleUser> googleUsers = new HashMap<String, GoogleUser>();
	
	public static GoogleUser getUser(String id){
		if (googleUsers.isEmpty()){
			// read pref file, create users with username as id
			googleUsers.put("dagomox", new GoogleUser("dagomox", "hu89iKl")); 
		}
		return googleUsers.get(id);
	}
	
	public static void reload(){
		googleUsers.clear();
	}

}
